<div id="pageoptions">
</div>
<div class="sectionwrap">
    <div class="sectiontitle">
    Click on a word to remove it from the Excluded Words list</div>
    <% if @excluded_word_pages.length > 1 then  %>
    <div class="pagination">
        <%= if !@excluded_word_pages.current.first? then link_to "&lt; Prev", :page=>@excluded_word_pages.current.previous else "&lt; Prev" end  %>
        <%= pagination_links(@excluded_word_pages) %>
        <%= if !@excluded_word_pages.current.last? then link_to "Next &gt;", :page=>@excluded_word_pages.current.next else "Next &gt;" end %>
    </div>
    <% end %>
    
    <div class="wordlist">
        <% for word in @excluded_words %>
            <div class="oneword"><%= link_to "#{word.word}", {# link_to options
                            :controller => 'excluded_word',
                            :action => 'stop_excluding',
                            :id => word.id },
                            { # html options
                                :method => :post,
                                :confirm => "Stop excluding #{word.word}?"
                            } %></div>
        <% end %>
    </div>
</div>